package com.project.internship.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.StudentPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.internship.vo.StudentPositionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-04-14
 */
@Repository
public interface StudentPositionMapper extends BaseMapper<StudentPosition> {

    IPage<StudentPositionVO> getStudentToPosition(Page<StudentPositionVO> page, @Param("baseId") Integer baseId, @Param("year") String year,@Param("keyword") String keyword);

    Integer getIdBySid(Integer sid);

    IPage<StudentPositionVO> getPracticeRecord(Page<StudentPositionVO> page, @Param("baseId") Integer baseId, @Param("keyword") String keyword);
}
